// Source File Name:   ActStatus.java

package com.sunwayhorizo.health.hl7.vocabulary;

import com.sunwayhorizo.health.hl7.common.VersionInfo;
import com.sunwayhorizo.health.hl7.datatypes.CS;
import com.sunwayhorizo.health.hl7.datatypes.common.InternalFactory;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public class ActStatus
{

    public static final String RCS_ID = "$Header: ActStatus.java 1.0 2005/07/12 06:32:52 mmoores noship $";
    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: ActStatus.java 1.0 2005/07/12 06:32:52 mmoores noship $",
        "com.sunwayhorizo.health.ctb.hl7.vocabulary");
    public static CS CANCELLED;
    public static CS ACTIVE;
    public static CS ABORTED;
    public static CS NULLIFIED;
    public static CS SUSPENDED;
    public static CS OBSOLETE;
    public static CS HELD;
    public static CS NEW;
    public static CS COMPLETED;
    /*
     * ----------病历状态------------
     */
    // 开启
    public static CS OPENED;
    // 提交
    public static CS SUBMITTED;
    // 完成(通过)
    public static CS PASSED;
    // 移除
    public static CS REMOVED;
    // 打回
    public static CS RETURNED;
    // 归档
    public static CS ARCHIVED;
    // 封存
    public static CS BLOCKED;
    // 解封
    public static CS UNBLOCKED;

    private static final CS values[];
    public static final Set ALL_VALUES;


    public ActStatus()
    {
    }

    static
    {
        CANCELLED = InternalFactory.newCS("cancelled");
        ACTIVE = InternalFactory.newCS("active");
        ABORTED = InternalFactory.newCS("aborted");
        NULLIFIED = InternalFactory.newCS("nullified");
        SUSPENDED = InternalFactory.newCS("suspended");
        OBSOLETE = InternalFactory.newCS("obsolete");
        HELD = InternalFactory.newCS("held");
        NEW = InternalFactory.newCS("new");
        COMPLETED = InternalFactory.newCS("completed");
        OPENED = InternalFactory.newCS("0");
        SUBMITTED = InternalFactory.newCS("1");
        PASSED = InternalFactory.newCS("2");
        REMOVED = InternalFactory.newCS("3");
        RETURNED = InternalFactory.newCS("4");
        ARCHIVED = InternalFactory.newCS("5");
        BLOCKED = InternalFactory.newCS("6");
        UNBLOCKED = InternalFactory.newCS("7");

        values = (new CS[] { CANCELLED, ACTIVE, ABORTED, NULLIFIED, SUSPENDED, OBSOLETE, HELD, NEW, COMPLETED, SUBMITTED, PASSED, REMOVED, RETURNED,
                ARCHIVED, BLOCKED, UNBLOCKED });
        ALL_VALUES = new HashSet(Arrays.asList(values));
    }
}
